﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Twi.COMMON.WPF
{
    public static class ExceptionExtensions
    {
        public static string GetFullMessage(this Exception ex)
        {
            StringBuilder sb = new StringBuilder("");
            sb.AppendLine("------------------------------------");
            sb.AppendLine(ex.Message);
            sb.AppendLine("------------------------------------");
            sb.AppendLine(ex.StackTrace);
            return sb.ToString();
        }
    }
}
